home *** CD-ROM | disk | FTP | other *** search
- Path: csun.edu!kc44097
- From: kc44097@csun.edu (chen)
- Newsgroups: comp.lang.c++
- Subject: Help!C++ beginner
- Date: 20 Apr 1996 11:02:09 GMT
- Organization: California State University, Northridge
- Message-ID: <4lag7h$oip@dewey.csun.edu>
- NNTP-Posting-Host: louie.csun.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- I am a beginner of C++,I have a C++ book,but I do not think
- it is very good,now I have some question which can not been found
- from this book,can someone give me some advice !Please e-mail me
- : kc44097@huey.csun.edu
-
- Thank you very much !!
-
- My question is :
- ----------------------------------------------------------------
- In C++ ,there are threee kind og inherence : public,protect and
- private,suppose there is a base class A which has public,private and protected
- member ,and a inherented class B,now if
-
- (1) public inherence,which part of A will inherent by B ?Does public of A
- is still public in B ?(private of A is private of B ? protected of A
- is protected of B ?)
- (2) private inherence,same as (1)
- (3) protected inherence,same as (1)
-